package itHeima.lesson6;

import java.util.Scanner;

public class demo4 {
    public static void main(String[] args) {
        double[] score = new double[6];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < score.length; i++) {
            System.out.println("请输入第" + (i + 1) + "评委的个数：");
            int rs = scanner.nextInt();
            score[i] = rs;
        }

        int sum = 0;
        for (int i = 0; i < score.length; i++) {
            System.out.println("第" + (i + 1) + "评委打分为：" + score[i]);
            sum += i;
        }
        System.out.println("平均分是：" + sum / score.length);
    }
}
